package com.atguigu.spring.demo09;

import org.springframework.stereotype.Controller;

@Controller
public class BananaController {

    private BananaService bananaService;

    public BananaController(BananaService bananaService) {
        this.bananaService = bananaService;
        System.out.println("日志 ……");
    }

    public void doSth() {
        bananaService.sayHello();
    }
}
